package com.xctech.yace.enumeration;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 基础数据表名映射关系
 *
 * @author junfeng.chen@xuncetech.com
 * @date 2021/11/1
 */
@AllArgsConstructor
public enum DimMapping {
    VAR_SCR_INFO("证券资料信息", "VAR_SCR_INFO", new String[]{"SCR_INCD","MKT_NO|SCR_CD"}),
    VAR_BOND_INFO("债券基本信息", "VAR_BOND_INFO", new String[]{"SCR_INCD"}),
    PRO_SEAT("席位表", "PRO_SEAT",new String[]{"SEAT_ID|MKT_NO"}),
    PRO_STOCK_HOLDER("股东信息", "PRO_STOCK_HOLDER", new String[]{"SHAD_CD|MKT_NO"}),
    PRO_ACC_INFO("账户信息", "PRO_ACC_INFO", new String[]{"ACC_ID"}),
    PRO_ACC_COMBI("组合信息", "PRO_ACC_COMBI", new String[]{"PFL_ID"}),
    PRO_ACC_ASSET_UNIT_INFO("资产单元信息", "PRO_ACC_ASSET_UNIT_INFO",new String[]{"AST_UNIT_ID"}),
    PTY_PD_BASE_INFO("产品基本信息", "PTY_PD_BASE_INFO",new String[]{"PD_ID"}),
    VAR_BOND_INTR_TAX_PREF("债券利息税优惠表", "VAR_BOND_INTR_TAX_PREF",new String[]{"SCR_INCD"}),

    VAR_O32_SPCL_BUSI_CONF("","VAR_O32_SPCL_BUSI_CONF",new String[]{"MKT_NO|TRD_PLFM|ENTR_DIR|O32_SCR_TYPE|BOAR_TYPE"}),
    PUB_O32_ENTR_DIR("","PUB_O32_ENTR_DIR",new String[]{"MKT_NO|ENTR_DIR"}),

    TRD_UNIT_CONF("交易单元配置","TTRDUNITCONF",new String[]{""}),

    EVT_EXCH_ODRE_REAL("交易所日初指令表", "EVT_EXCH_ODRE_REAL",new String[]{"ORDE_SCR_ONUM"}),
    EVT_EXCH_ENTR_REAL("交易所日初委托表", "EVT_EXCH_ENTR_REAL",new String[]{"ENTR_ONUM"}),
    EVT_EXCH_MTCH_REAL("交易所日初成交表", "EVT_EXCH_MTCH_REAL",new String[]{"MTCH_ONUM"}),
    EVT_EXCH_SETT_REAL("交易所日初交收表", "EVT_EXCH_SETT_REAL",new String[]{"SETT_ONUM"}),
    EVT_OFLE_ENTR_REAL("网下委托表", "EVT_OFLE_ENTR_REAL",new String[]{"ENTR_ONUM"}),
    EVT_OFLE_MTCH_REAL("网下成交表", "EVT_OFLE_MTCH_REAL",new String[]{"MTCH_ONUM"}),

    FIN_MTCH_LIQ("清算交易表", "FIN_MTCH_LIQ",null),
    FIN_MTCH_LIQ_JOUR("清算流水表", "FIN_MTCH_LIQ_JOUR",null),
    ;

    @Getter
    private String comment;

    @Getter
    private String table;

    /**
     * 主键/唯一索引
     */
    @Getter
    private String[] key;


}
